/*
 * Copyright (c) 2008, Xiong Yingfei, the University of Tokyo
 * All rights reserved.
 */
package ac.jp.u_tokyo.SyncLib.language.factories;

import ac.jp.u_tokyo.SyncLib.Sync;
import ac.jp.u_tokyo.SyncLib.SyncFactory;
import ac.jp.u_tokyo.SyncLib.dictionaries.DynamicGet;
import ac.jp.u_tokyo.SyncLib.dictionaries.FixedDictDynamicGet;
import ac.jp.u_tokyo.SyncLib.dictionaries.InsertNewKeyDynamicGet;
import ac.jp.u_tokyo.SyncLib.dictionaries.KeyFactory;

public class KVDGetFactory implements SyncFactory
{
	boolean _changeKeyFirst;
	KeyFactory _keyFactory;

	public void setKeyOverValue(Object changeKeyFirst)
	{
		_changeKeyFirst = (Boolean) changeKeyFirst;
	}


	public void setKeyFactory(Object keyFactory)
	{
		_keyFactory = (KeyFactory) keyFactory;
	}


	public Sync create()
	{
		return new FixedDictDynamicGet<Object>(_changeKeyFirst, _keyFactory);
	}

}
